﻿<?php
/**
* @version		$Id: view.html.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package		Joomla
* @subpackage	Poll
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport( 'joomla.application.component.view');
		
class amapViewadvoirldb extends JView
{
	var $amap;
	function display($tpl = null)
	{
	$mainframe =& JFactory::getApplication();	
		if($this->amap->adLoggue)
		{
		
			$document =& JFactory::getDocument();
			$pathway  =& $mainframe->getPathway();

			// Adds parameter handling
			$params = $mainframe->getParams();

			$params->def( 'show_page_title', 1 );
			$params->def( 'page_title', 'adhésion');

			if ($this->amap->adLoggue){
				if ($this->amap->adExiste){

					if(isset($this->amap->adhesion) || isset($this->amap->adhesionFutur)){
						// affichage des abonnements souscrits
						if (isset($this->amap->aboTous)) {
							echo '<h3>Liste des contrats</h3>';
							echo"<br>Pour choisir la date de la livraison a imprimer ou pour imprimer la prochaine livraison, cliquez sur un des 2 icones de droite pour la livraison choisie<br>"; 
							$this->amap->aboTous->commandes = array (
									0=>array ('href'=>'index.php?option=com_amap&view=advoiraboldb',
											'param'=>array('abo'=>'Nom'),
											'icone'=>'calendrier.png',
											'title'=>'Choisir la livraison a imprimer'),
									1=>array ('href'=>'index.php?option=com_amap&view=advoirdistribldb&distrib=next',
											'param'=>array('abo'=>'Nom'),
											'icone'=>'distrib.png',
											'title'=>'Imprimer la prochaine livraison')
								);
							$this->amap->aboTous->afficheTable(); 
						}
					} 
					
					echo '</div>';

				
			}
		}
parent::display($tpl);
	}

}}
?>
